import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
	plugins: [uni()],
	server: {
		port: "8080",
		proxy: {
			"/h5": {
				"target": "http://192.168.0.2:3001",
				"changeOrigin": true,
				"secure": false,
				rewrite: (path) => path.replace(/^\/h5/, "")
			}
		}
	}
});